//
//  Ast.cpp
//  LightBasic
//
//  Created by Albert on 25/03/2011.
//  Copyright 2011 LightBasic Development Team. All rights reserved.
//

#include "Ast.h"
using namespace lbc;

// pool allocator implementation
#define AST_CLASS(klass) \
    static boost::pool<> _pool##klass(sizeof(klass)); \
    void * klass::operator new(size_t) { return _pool##klass.malloc(); } \
    void klass::operator delete(void * addr) { _pool##klass.free(addr); }
#include "AstClasses.def.h"
